package com.ghca.myinfo3.system.service;

import com.ghca.myinfo3.system.entity.Permission;

import java.util.List;

/**
 * Created by Administrator on 2016/12/18.
 */
public interface IPermissionService {

    Permission addPermission(Permission permission);

    Permission addPermission(Long parentId, Permission permission);

    List<Permission> findRoot();

    Permission findRoot(Long id);

    List<Permission> findByParent(Long parentId, boolean include);

    List<Permission> findByUsername(String username);

}
